package cc.lj.internal.payment.infrastructure.repository;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.payment.domain.settlement.repository.ICouponsCapLogRepository;
import cc.lj.internal.payment.infrastructure.po.CouponsCapLogPO;
import cc.lj.internal.payment.infrastructure.repository.mysql.CouponsCapLogMysqlRespository;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * 电子券封顶额计算日志表 Repository 实现
 * @author liangxifeng
 * @date 2022/10/24 14:55
 */

@Repository("couponsCapLogRepository")
public class CouponsCapLogRepository implements ICouponsCapLogRepository {
    @Resource(name="couponsCapLogMysqlRespository")
    private CouponsCapLogMysqlRespository repository;

    @Override
    public PageInfo<CouponsCapLogPO> selectPage(PageParam pageParam) {
        return repository.selectPage(pageParam);
    }

    @Override
    public List<CouponsCapLogPO> getList(CouponsCapLogPO entityPO) {
        return repository.getList(entityPO);
    }

    @Override
    public Integer insert(CouponsCapLogPO logPO) {
        return repository.insert(logPO);
    }

    @Override
    public CouponsCapLogPO getById(Integer id) {
        return repository.getById(id);
    }
}
